package com.jumi.microservice.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class ArticleOP implements Serializable {
    @ApiModelProperty(value = "文章id")
    private Long id;

    @ApiModelProperty(value = "分类id")
    private Long acid;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    @Length(max = 10,message = "部门名称长度不能超过10个字符")
    private String articleTitle;

    @NotBlank(message = "内容不能为空")
    @ApiModelProperty(value = "内容")
    private String articleContent;

    @ApiModelProperty(value = "排序")
    @Range(min = 0,max = 999, message = "排序的取值范围0-999")
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAcid() {
        return acid;
    }

    public void setAcid(Long acid) {
        this.acid = acid;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
